<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
          "DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>backend.API : API documentation</title>

    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="apidocs.css" />
  </head>
  <body>

    <nav class="navbar navbar-default">
      <div class="container">
        <div class="navbar-header">
          <a class="navbar-brand" href="index.html">
            backend API Documentation
          </a>
        </div>
      </div>
    </nav>

    <div id="showPrivate">
      <button class="btn btn-link" onclick="togglePrivate()">Toggle Private API</button>
    </div>

    <div class="container">

      <div class="page-header">
        <h1 class="class"><code>backend.API</code> <small>class documentation</small></h1>

        <span id="partOf">
          Part of <code><a href="backend.html" class="code" data-type="Module">backend</a></code>
          
          <a href="classIndex.html#backend.API">(View In Hierarchy)</a>
        </span>
      </div>

      <div class="extrasDocstring">
        
      </div>

      <div class="moduleDocstring">
        <div><p>This interacts with the external odoo 13 API with XMLrpc</p><p>The API Class is intended to be used a black box implentation which is imported by another Class or Python Scipt</p></div>
      </div>

      <div id="splitTables">
        <table class="children sortable" id="id6">
  
  <tr class="classvariable">
    
    <td>Class Variable</td>
    <td><a href="backend.API.html#url" class="code" data-type="Class Variable">url</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="classvariable">
    
    <td>Class Variable</td>
    <td><a href="backend.API.html#db" class="code" data-type="Class Variable">db</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="classvariable">
    
    <td>Class Variable</td>
    <td><a href="backend.API.html#username" class="code" data-type="Class Variable">username</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="classvariable">
    
    <td>Class Variable</td>
    <td><a href="backend.API.html#password" class="code" data-type="Class Variable">password</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="classvariable">
    
    <td>Class Variable</td>
    <td><a href="backend.API.html#common" class="code" data-type="Class Variable">common</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="classvariable">
    
    <td>Class Variable</td>
    <td><a href="backend.API.html#models" class="code" data-type="Class Variable">models</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="classvariable">
    
    <td>Class Variable</td>
    <td><a href="backend.API.html#uid" class="code" data-type="Class Variable">uid</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    <td>Method</td>
    <td><a href="backend.API.html#__init__" class="code" data-type="Method">__init__</a></td>
    <td><span>Reads the values from its parameters and uses them to build the API</span></td>
  </tr><tr class="instancevariable">
    
    <td>Instance Variable</td>
    <td><a href="backend.API.html#printed" class="code" data-type="Instance Variable">printed</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="instancevariable">
    
    <td>Instance Variable</td>
    <td><a href="backend.API.html#id" class="code" data-type="Instance Variable">id</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="instancevariable">
    
    <td>Instance Variable</td>
    <td><a href="backend.API.html#name" class="code" data-type="Instance Variable">name</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="instancevariable">
    
    <td>Instance Variable</td>
    <td><a href="backend.API.html#number" class="code" data-type="Instance Variable">number</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="instancevariable">
    
    <td>Instance Variable</td>
    <td><a href="backend.API.html#addres" class="code" data-type="Instance Variable">addres</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="instancevariable">
    
    <td>Instance Variable</td>
    <td><a href="backend.API.html#description" class="code" data-type="Instance Variable">description</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="instancevariable">
    
    <td>Instance Variable</td>
    <td><a href="backend.API.html#menge" class="code" data-type="Instance Variable">menge</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="instancevariable">
    
    <td>Instance Variable</td>
    <td><a href="backend.API.html#preis" class="code" data-type="Instance Variable">preis</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="instancevariable">
    
    <td>Instance Variable</td>
    <td><a href="backend.API.html#sum_order" class="code" data-type="Instance Variable">sum_order</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="instancevariable">
    
    <td>Instance Variable</td>
    <td><a href="backend.API.html#comment" class="code" data-type="Instance Variable">comment</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr><tr class="method">
    
    <td>Method</td>
    <td><a href="backend.API.html#login" class="code" data-type="Method">login</a></td>
    <td><span>Login into the Server return the reading rights of stock.picking</span></td>
  </tr><tr class="method">
    
    <td>Method</td>
    <td><a href="backend.API.html#get_fields" class="code" data-type="Method">get_fields</a></td>
    <td><span>What Fields does the our Odoo Model have of of this data Field</span></td>
  </tr><tr class="method">
    
    <td>Method</td>
    <td><a href="backend.API.html#get_partner_address" class="code" data-type="Method">get_partner_address</a></td>
    <td><span>Returns the adress and geolocation of all ids as a AdressSchema</span></td>
  </tr><tr class="method">
    
    <td>Method</td>
    <td><a href="backend.API.html#get_not_printed_pickings" class="code" data-type="Method">get_not_printed_pickings</a></td>
    <td><span>Returns all Pickings which have not been not been printed or processed The xml Response of the Server is parsed to a python Data Picking Class</span></td>
  </tr><tr class="method">
    
    <td>Method</td>
    <td><a href="backend.API.html#get_product" class="code" data-type="Method">get_product</a></td>
    <td><span>Returns all orders Lines of a Product</span></td>
  </tr><tr class="method">
    
    <td>Method</td>
    <td><a href="backend.API.html#post_printed_picking" class="code" data-type="Method">post_printed_picking</a></td>
    <td><span>Post the new value of printed for picking_id</span></td>
  </tr><tr class="method private">
    
    <td>Method</td>
    <td><a href="backend.API.html#__load_picking" class="code" data-type="Method">__load_picking</a></td>
    <td><span>Loads the Picking Schema from a String. Usefull for testing</span></td>
  </tr>
</table>
        

          
      </div>

      <div id="childList">

        <div class="baseclassvariable">
  
  <a name="backend.API.url">
    
  </a>
  <a name="url">
    
  </a>
  <div class="functionHeader">
    url =
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div> (type: <code>str</code>)
  </div>
</div><div class="baseclassvariable">
  
  <a name="backend.API.db">
    
  </a>
  <a name="db">
    
  </a>
  <div class="functionHeader">
    db =
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div> (type: <code>str</code>)
  </div>
</div><div class="baseclassvariable">
  
  <a name="backend.API.username">
    
  </a>
  <a name="username">
    
  </a>
  <div class="functionHeader">
    username =
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div> (type: <code>str</code>)
  </div>
</div><div class="baseclassvariable">
  
  <a name="backend.API.password">
    
  </a>
  <a name="password">
    
  </a>
  <div class="functionHeader">
    password =
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div> (type: <code>str</code>)
  </div>
</div><div class="baseclassvariable">
  
  <a name="backend.API.common">
    
  </a>
  <a name="common">
    
  </a>
  <div class="functionHeader">
    common =
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div>
  </div>
</div><div class="baseclassvariable">
  
  <a name="backend.API.models">
    
  </a>
  <a name="models">
    
  </a>
  <div class="functionHeader">
    models =
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div>
  </div>
</div><div class="baseclassvariable">
  
  <a name="backend.API.uid">
    
  </a>
  <a name="uid">
    
  </a>
  <div class="functionHeader">
    uid =
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div>
  </div>
</div><div class="basemethod">
  
  <a name="backend.API.__init__">
    
  </a>
  <a name="__init__">
    
  </a>
  <div class="functionHeader">
    
    def
    __init__(self, id, name, number, addres, description, menge, preis, sum_order, comment):
    
  </div>
  <div class="docstring functionBody">
    
    
    <div><p>Reads the values from its parameters and uses them to build the API</p></div>
  </div>
</div><div class="baseinstancevariable">
  
  <a name="backend.API.printed">
    
  </a>
  <a name="printed">
    
  </a>
  <div class="functionHeader">
    printed =
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div> (type: <code>bool</code>)
  </div>
</div><div class="baseinstancevariable">
  
  <a name="backend.API.id">
    
  </a>
  <a name="id">
    
  </a>
  <div class="functionHeader">
    id =
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div>
  </div>
</div><div class="baseinstancevariable">
  
  <a name="backend.API.name">
    
  </a>
  <a name="name">
    
  </a>
  <div class="functionHeader">
    name =
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div>
  </div>
</div><div class="baseinstancevariable">
  
  <a name="backend.API.number">
    
  </a>
  <a name="number">
    
  </a>
  <div class="functionHeader">
    number =
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div>
  </div>
</div><div class="baseinstancevariable">
  
  <a name="backend.API.addres">
    
  </a>
  <a name="addres">
    
  </a>
  <div class="functionHeader">
    addres =
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div>
  </div>
</div><div class="baseinstancevariable">
  
  <a name="backend.API.description">
    
  </a>
  <a name="description">
    
  </a>
  <div class="functionHeader">
    description =
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div>
  </div>
</div><div class="baseinstancevariable">
  
  <a name="backend.API.menge">
    
  </a>
  <a name="menge">
    
  </a>
  <div class="functionHeader">
    menge =
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div>
  </div>
</div><div class="baseinstancevariable">
  
  <a name="backend.API.preis">
    
  </a>
  <a name="preis">
    
  </a>
  <div class="functionHeader">
    preis =
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div>
  </div>
</div><div class="baseinstancevariable">
  
  <a name="backend.API.sum_order">
    
  </a>
  <a name="sum_order">
    
  </a>
  <div class="functionHeader">
    sum_order =
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div>
  </div>
</div><div class="baseinstancevariable">
  
  <a name="backend.API.comment">
    
  </a>
  <a name="comment">
    
  </a>
  <div class="functionHeader">
    comment =
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div>
  </div>
</div><div class="basemethod">
  
  <a name="backend.API.login">
    
  </a>
  <a name="login">
    
  </a>
  <div class="functionHeader">
    
    def
    login():
    
  </div>
  <div class="docstring functionBody">
    
    
    <div><p>Login into the Server return the reading rights of stock.picking</p></div>
  </div>
</div><div class="basemethod">
  
  <a name="backend.API.get_fields">
    
  </a>
  <a name="get_fields">
    
  </a>
  <div class="functionHeader">
    
    def
    get_fields(field_name):
    
  </div>
  <div class="docstring functionBody">
    
    
    <div><p>What Fields does the our Odoo Model have of of this data Field</p></div>
  </div>
</div><div class="basemethod">
  
  <a name="backend.API.get_partner_address">
    
  </a>
  <a name="get_partner_address">
    
  </a>
  <div class="functionHeader">
    
    def
    get_partner_address(ids):
    
  </div>
  <div class="docstring functionBody">
    
    
    <div><p>Returns the adress and geolocation of all ids as a AdressSchema</p></div>
  </div>
</div><div class="basemethod">
  
  <a name="backend.API.get_not_printed_pickings">
    
  </a>
  <a name="get_not_printed_pickings">
    
  </a>
  <div class="functionHeader">
    
    def
    get_not_printed_pickings():
    
  </div>
  <div class="docstring functionBody">
    
    
    <div><p>Returns all Pickings which have not been not been printed or processed The xml Response of the Server is parsed to a python Data Picking Class</p></div>
  </div>
</div><div class="basemethod private">
  
  <a name="backend.API.__load_picking">
    
  </a>
  <a name="__load_picking">
    
  </a>
  <div class="functionHeader">
    
    def
    __load_picking(p_picking):
    
  </div>
  <div class="docstring functionBody">
    
    
    <div><p>Loads the Picking Schema from a String. Usefull for testing</p></div>
  </div>
</div><div class="basemethod">
  
  <a name="backend.API.get_product">
    
  </a>
  <a name="get_product">
    
  </a>
  <div class="functionHeader">
    
    def
    get_product(ids):
    
  </div>
  <div class="docstring functionBody">
    
    
    <div><p>Returns all orders Lines of a Product</p></div>
  </div>
</div><div class="basemethod">
  
  <a name="backend.API.post_printed_picking">
    
  </a>
  <a name="post_printed_picking">
    
  </a>
  <div class="functionHeader">
    
    def
    post_printed_picking(printed, picking_id):
    
  </div>
  <div class="docstring functionBody">
    
    
    <div><p>Post the new value of printed for picking_id</p></div>
  </div>
</div>

      </div>
      <address>
        <a href="index.html">API Documentation</a> for backend, generated by <a href="https://github.com/twisted/pydoctor/">pydoctor</a> at 2020-09-10 02:53:19.
      </address>

    </div>

    <script src="pydoctor.js" type="text/javascript"></script>

  </body>
</html>